"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
    return function (target, key) { decorator(target, key, paramIndex); }
};
// 先进行一些装饰器的定义
function logClass1(target) {
    console.log('logClass1');
}
function logClass2(target) {
    console.log('logClass2');
}
function logAttribute1(param) {
    return function (target, attrName) {
        console.log('attribute1');
    };
}
function logAttribute2(param) {
    return function (target, attrName) {
        console.log('attribute2');
    };
}
function logMethod1(param) {
    return function (target, methodName, descriptor) {
        console.log('logMethod1');
    };
}
function logMethod2(param) {
    return function (target, methodName, descriptor) {
        console.log('logMethod2');
    };
}
function logParam1(param) {
    return function (target, methodName, index) {
        console.log('logParam1');
    };
}
function logParam2(param) {
    return function (target, methodName, index) {
        console.log('logParam2');
    };
}
let HttpClient = class HttpClient {
    api1;
    api2;
    constructor() {
    }
    get1() {
    }
    get2() { }
    get3(param1, param2) { }
};
__decorate([
    logAttribute1()
], HttpClient.prototype, "api1", void 0);
__decorate([
    logAttribute2()
], HttpClient.prototype, "api2", void 0);
__decorate([
    logMethod1()
], HttpClient.prototype, "get1", null);
__decorate([
    logMethod2()
], HttpClient.prototype, "get2", null);
__decorate([
    __param(0, logParam1()),
    __param(1, logParam2())
], HttpClient.prototype, "get3", null);
HttpClient = __decorate([
    logClass1,
    logClass2
], HttpClient);
